﻿using Prism.Commands;
using StaffModule.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace StaffModule.Views {
    /// <summary>
    /// StaffView.xaml 的交互逻辑
    /// </summary>
    public partial class StaffView : UserControl {
        //public DelegateCommand AddStaffCmd { get; set; }
        public StaffView() {
            InitializeComponent();
            //AddStaffCmd = new DelegateCommand(AddStaff);
        }
        //添加员工
        //private void AddStaff() {
        //    //父子关系
        //    AddStaffView addStaffView = new AddStaffView();
        //    addStaffView.Owner = Window.GetWindow(this);
        //    //todo 为什么在这里绑定view与vm啊?
        //    addStaffView.DataContext = new AddStaffViewModel();
        //    //ShowDialog:子窗口弹出来后,父窗口不能动;show:父窗口可以动
        //    addStaffView.WindowStartupLocation = WindowStartupLocation.CenterOwner;
        //    addStaffView.ShowDialog();
        //}
       


    }
}
